import Vuex from 'vuex'
import Vue from 'vue'
import Router from 'vue-router'
import Login from "@/components/Login";
import Index from "@/components/Index";
import Register from "@/components/Register";
Vue.use(Vuex)
const store = new Vuex.Store({
    state: {
        router: new Router({
            routes: [{
                path: "/",
                name: 'Login',
                component: Login
            }, {
                path: "/index",
                name: 'Index',
                component: Index
            }, {
                path: "/register",
                name: 'Register',
                component: Register
            }]
        })
    }
});
export default store;